package com.chocho.javacompileserver.client.hystrix;

import com.chocho.javacompileserver.client.PushResultClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * Created by chocho on 2022/5/20.
 */
@Component
public class ConsumerServiceHystrix implements PushResultClient {
    private Logger logger = LoggerFactory.getLogger(ConsumerServiceHystrix.class);

    @Override
    public void pushResult(@RequestBody Map<String, Object> map) {
        logger.error("WebSocket调用失败");
        return;
    }
}
